﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

public interface ISerializeStruct
{
    void Read(byte[] bytes);
    byte[] Write();
}
public abstract  class ISerialize
{
    protected ISerialize()
    {
    }

    public virtual void Read(byte[] bytes)
    {

    }

    public virtual byte[] Write()
    {
        return null;
    }

}

